//
//  Coin.swift
//  Monujo
//
//  Created by user on 2024/1/3.
//
//

import Foundation
import SwiftData


@Model 
public class Coin {
    var name: String
    var symbol: String
    var price: Decimal
    var balance: Decimal
    var contract: String
    var contractType: String
    var network: Network?
    
    init(name: String, symbol: String, price: Decimal, balance: Decimal, contract: String, contractType: String, network: Network) {
        self.name = name
        self.symbol = symbol
        self.price = price
        self.balance = balance
        self.contract = contract
        self.contractType = contractType
        self.network = network
    }
    
}
